using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using RevitForge.Services;
using System.Linq;

namespace RevitForge.Commands
{
    [Transaction(TransactionMode.Manual)]
    public class RefreshCommand : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            var loader = new DynamicCommandLoader(commandData.Application);
            loader.RefreshCommands();
            return Result.Succeeded;
        }
    }
}